<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
|	example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
|	http://codeigniter.com/user_guide/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There are two reserved routes:
|
|	$route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
|	$route['404_override'] = 'errors/page_missing';
|
| This route will tell the Router what URI segments to use if those provided
| in the URL cannot be matched to a valid route.
|
*/

$route['default_controller'] = 'home';
$route['404_override'] = 'pages';

$route['admin/help/([a-zA-Z0-9_-]+)']	= 'admin/help/$1';
$route['admin/([a-zA-Z0-9_-]+)/(:any)']	= '$1/admin/$2';
$route['admin/(login|logout)']			= 'admin/$1';
$route['admin/([a-zA-Z0-9_-]+)']		= '$1/admin/index';

//$route['register'] = 'users/register';

//$route['user/([\w]+)']	= 'users/view/$1';
//$route['my-profile']		= 'users/index';
//$route['edit-profile']	= 'users/edit';

$route['sitemap.xml'] 	= 'sitemap/xml';

$route['agent/escort/(:any)']	= 'agent/escort/$1';

$route['([\w]+)/page/([\w]+)']	= 'news/page/$1';
$route['([\w]+)/search/barcelona']	= 'home/search/?country_id=62&state_id=9&province_id=10';
$route['([\w]+)/search/madrid']	= 'home/search/?country_id=62&state_id=15&province_id=33&city_id=0';
$route['([\w]+)/search/valencia']	= 'home/search/?country_id=62&state_id=19';    
$route['([\w]+)/escort/(:any)']	= 'home/profile/$1';

$route['page/([\w]+)']	= 'news/page/$1';
$route['search/barcelona']	= 'home/search/?country_id=62&state_id=9&province_id=10';
$route['search/madrid']	= 'home/search/?country_id=62&state_id=15&province_id=33&city_id=0';
$route['search/valencia']	= 'home/search/?country_id=62&state_id=19';   
$route['escort/(:any)']	= 'home/profile/$1';



$route['en/(:any)'] = '$1';
$route['af/(:any)'] = '$1';
$route['sq/(:any)'] = '$1';
$route['ar/(:any)'] = '$1';
$route['az/(:any)'] = '$1';
$route['eu/(:any)'] = '$1';
$route['bn/(:any)'] = '$1';
$route['be/(:any)'] = '$1';
$route['bg/(:any)'] = '$1';
$route['ca/(:any)'] = '$1';
$route['zh-CN/(:any)'] = '$1';
$route['zh-TW/(:any)'] = '$1';
$route['hr/(:any)'] = '$1';
$route['cs/(:any)'] = '$1';
$route['da/(:any)'] = '$1';
$route['nl/(:any)'] = '$1';
$route['eo/(:any)'] = '$1';
$route['et/(:any)'] = '$1';
$route['tl/(:any)'] = '$1';
$route['fi/(:any)'] = '$1';
$route['fr/(:any)'] = '$1';
$route['gl/(:any)'] = '$1';
$route['ka/(:any)'] = '$1';
$route['de/(:any)'] = '$1';
$route['el/(:any)'] = '$1';
$route['gu/(:any)'] = '$1';
$route['ht/(:any)'] = '$1';
$route['iw/(:any)'] = '$1';
$route['hi/(:any)'] = '$1';
$route['hu/(:any)'] = '$1';
$route['is/(:any)'] = '$1';
$route['id/(:any)'] = '$1';
$route['ga/(:any)'] = '$1';
$route['it/(:any)'] = '$1';
$route['ja/(:any)'] = '$1';
$route['kn/(:any)'] = '$1';
$route['ko/(:any)'] = '$1';
$route['la/(:any)'] = '$1';
$route['lv/(:any)'] = '$1';
$route['lt/(:any)'] = '$1';
$route['mk/(:any)'] = '$1';
$route['ms/(:any)'] = '$1';
$route['mt/(:any)'] = '$1';
$route['no/(:any)'] = '$1';
$route['fa/(:any)'] = '$1';
$route['pl/(:any)'] = '$1';
$route['pt/(:any)'] = '$1';
$route['ro/(:any)'] = '$1';
$route['ru/(:any)'] = '$1';
$route['sr/(:any)'] = '$1';
$route['sk/(:any)'] = '$1';
$route['sl/(:any)'] = '$1';
$route['es/(:any)'] = '$1';
$route['sw/(:any)'] = '$1';
$route['sv/(:any)'] = '$1';
$route['ta/(:any)'] = '$1';
$route['te/(:any)'] = '$1';
$route['th/(:any)'] = '$1';
$route['tr/(:any)'] = '$1';
$route['uk/(:any)'] = '$1';
$route['ur/(:any)'] = '$1';
$route['vi/(:any)'] = '$1';
$route['cy/(:any)'] = '$1';
$route['yi/(:any)'] = '$1';



/* End of file routes.php */